/*
* Copyright 2016 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-wechat-open-api
*
* @File name : AskingPriceApiServiceInterface.java
*
* @Author : LiuJun
*
* @Date : 2016年11月9日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2016年11月9日    LiuJun    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.gmcc.gateway.wechat.service.interfaces;

import java.util.List;
import java.util.Map;

import org.marketing.common.dto.askingPrice.AskingPriceDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author LiuJun 询价API接口
 * @date 2016年11月9日
 */
@FeignClient(name = "service-askingPrice")
public interface AskingPriceApiServiceInterface {

	/**
	 *
	 * @author LiuJun 询价保存
	 * @date 2016年11月9日
	 * @param askingPriceDto
	 * @return
	 */
	@RequestMapping(value = "/askingPrice/api/v1", method = RequestMethod.POST)
	public @ResponseBody Map<String, Object> saveAskingPrice(@RequestBody AskingPriceDto askingPriceDto);

	/**
	 * 更新询价状态
	 * 
	 * @author QianKun
	 * @date 2016年12月30日
	 * @param askingPriceDto
	 * @return
	 */
	@RequestMapping(value = "/askingPrice/api/v1/updateStatus", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> updateAskingPriceStatus(@RequestBody AskingPriceDto askingPriceDto);

	/**
	 *
	 * @author QianKun 询价列表查询
	 * @date 2016年11月17日
	 * @param potentialUserId
	 * @return
	 */
	@RequestMapping(value = "/askingPrice/api/v1", method = RequestMethod.GET)
	public List<AskingPriceDto> getAskingPriceData(@RequestParam("potentialUserId") Long potentialUserId,
			@RequestParam("phone") String phone, @RequestParam("submitDateFrom") String submitDateFrom,
			@RequestParam("submitDateEnd") String submitDateEnd, @RequestParam("startDateFrom") String startDateFrom,
			@RequestParam("startDateEnd") String startDateEnd,
			@RequestParam("askingPriceStatus") String askingPriceStatus);

	/**
	 *
	 * @author QianKun 询价詳情查询
	 * @date 2016年11月16日
	 * @param askingPriceId
	 * @return
	 */
	@RequestMapping(value = "/askingPrice/api/v1/{id}", method = RequestMethod.GET)
	public List<AskingPriceDto> getAskingPriceDataById(@PathVariable(value = "id") String askingPriceId);
}
